package cn.sdormitory.school.dao;

import cn.sdormitory.basedata.vo.BClassVo;
import cn.sdormitory.basedata.vo.BDormitoryVO;
import cn.sdormitory.school.entity.SchoolDuty;
import cn.sdormitory.school.entity.SchoolPatrol;
import cn.sdormitory.school.vo.SchoolPatrolVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SchoolPatrolDao extends BaseMapper<SchoolPatrol> {

    List<SchoolPatrol> getSchoolPatrolList(@Param("map")Map<String,Object> map, Integer currPage, Integer pageSize);
    int getSchoolPatrolListCount(@Param("map")Map<String,Object> map);

    List<BClassVo> getClassListByDept(@Param("dutyDept")String[] dutyDept);

    List<BDormitoryVO> getDormitoryNameByName(@Param("name")String name);

    SchoolPatrolVo findById(Long id);
}
